package com.xuecheng.media.client;


import com.xuecheng.content.model.dto.MediaFilesDto;
import com.xuecheng.content.model.dto.TeachplanAndTeachplanMediaDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "content-api" ,contextId="courseTeacherServiceClient")
public interface CourseTeacherServiceClient {

    @PostMapping("/content/courseTeacher/{teacherId}/picture")
    public Boolean updateCourseTeacherPicture( @PathVariable("teacherId") Long teacherId,  @RequestParam("picUrl") String picUrl);

    @PostMapping("/content/courseTeacher/uploadImage/{teacherId}")
    public Map<String,String> courseTeacherExtractMd5(@PathVariable("teacherId") Long teacherId);

//    @PostMapping("/content/teachplan/media/{teacherId}")
//    public TeachplanAndTeachplanMediaDto teachplanAndTeachplanMedia(@PathVariable("teacherId") Long teacherId);

    @PostMapping("/content/teachplan/mediaAdd")
    public TeachplanAndTeachplanMediaDto teachplanMediaUpdateFile(@RequestBody MediaFilesDto mediaFilesDto);
}
